package cup;

import java.io.PrintWriter;
import java.net.Socket;

public class ClientTestParser {

	public static void main(String[] args) {
		try{
		Socket s = new Socket("localhost", 40000);
		PrintWriter p = new PrintWriter(s.getOutputStream());
		
		p.print("announce listen 4000 seed [a.out 123 12 00383366b82bafbf66c13f6117ea61a5] leech [5f78f8c086a49ec369d447713fa2dd08]");
		p.flush();
		p.print("getfile 00383366b82bafbf66c13f6117ea61a5");
		p.flush();
		p.print("look [filename=\"toto\" filesize=\"1234\"]");
		System.out.println("TOTO");
		
		}
		catch(Exception e){
		e.printStackTrace();
		}

}
}
